from gmpy2 import invert
import rsa

n = int('C0332C5C64AE47182F6C1C876D42336910545A58F7EEFEFC0BCAAF5AF341CCDD',16)
# n = 86934482296048119190666062003494800588905656017203025617216654058378322103517
p = 285960468890451637935629440372639283459
q = 304008741604601924494328155975272418463
e = 65537

d = int(invert(e, (p-1)*(q-1)))
# d = 81176168860169991027846870170527607562179635470395365333547868786951080991441
key = rsa.PrivateKey(n, e, d, p, q)
with open('flag.enc', 'rb') as f:
    flag = rsa.decrypt(f.read(), key).decode()
print(flag) # flag{decrypt_256}